package com.common.domain;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class BasePage {
    //当前页数
    private Long page = 1L;
    //页面大小
    private Long limit = 10L;
    public IPage page(){
     return new Page<>(page == null ? 1L : page,limit == null ? 10L : limit);
    }
}
